<%@page import="org.apache.commons.codec.digest.DigestUtils"%>
<%@page import="com.accl.poc.HashUtils"%>
<html>
<style>
input[type=text]{
	width:400px;
}
</style>
<body>
	<h2>Merchant</h2>
	<form action="https://appserver1:8443/app/app" method="POST">
		transaction_id: <input type="text" name="transaction_id" value="<%=HashUtils.generate(application)%>" /><br/>
		merchant_hash: <input type="text" name="merchant_hash" value="<%=DigestUtils.shaHex("merchant001")%>" /><br/>
		bip: <input type="text" name="bip" value="<%=request.getRemoteAddr()%>" /><br/>
		mip: <input type="text" name="mip" value="<%=request.getLocalAddr()%>" /><br/>
		url: <input type="text" name="url" value="http://58.181.220.230:18080/merchant/return_url.jsp" /><br/>
		<input type="submit" value="CHECKOUT" />
	</form>
</body>
</html>
